Create a new instance of the LearningStoreItemIdentifier class.
Parent Type: LearningStoreItemIdentifier
Namespace: Microsoft.LearningComponents.Storage
Assembly: Microsoft.LearningComponents.Storage.dll
| C# |
|
public LearningStoreItemIdentifier ( ) |
itemTypeName
Name of the item type to which the identifier refers.
key
The unique integer value assigned to the item. This must be a positive integer.
| Exception type | Condition |
| ArgumentNullException | itemTypeName is a null reference. |
| ArgumentOutOfRangeException | key is not a valid positive integer. |
The following code creates a reference to the user with a key of 50:
| C# |
LearningStoreItemIdentifier id = new LearningStoreItemIdentifier("UserItem", 50);
|